/**
 * ListItem.java 2008-05-16
 * 
 * Linker is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

package linker.list;

import javax.swing.JPopupMenu;

/**
 * The interface of list items.
 * 
 * @version 2008-05-28
 * @author AwakenRz awakenrz@gmail.com
 * @author Tan tan1986@gmail.com
 * 
 */

public interface ListState {

	/**
	 * Get popupMenu by select item.
	 * 
	 * @param listItem
	 *            The selected item.
	 * @return The created popupMenu.
	 */
	JPopupMenu getPopupMenuByItem(ListItem listItem);

	/**
	 * 
	 * @param item
	 *            The selected item.
	 */
	void doubleClickByItem(ListItem item);

}
